-- 格式要UTF8-BOM
local TWaryLua = require "TWaryLua";
local initData = require "1"


-- 需要生成安全组相关的内容. 防止卡线以后还能手动操作它
TWaryLua.SaveToFile("./exe/sg-game.bat",    "AliyunSecurityGroup.exe cn-hongkong ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " game-* ../json/game.json game-"       .. initData.xxxx .."-byTools"); print("正在生成 sg-game.bat");
TWaryLua.SaveToFile("./exe/sg-java.bat",    "AliyunSecurityGroup.exe cn-hongkong ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " java-* ../json/java.json java-"       .. initData.xxxx .."-byTools"); print("正在生成 sg-java.bat");
TWaryLua.SaveToFile("./exe/sg-javam.bat",   "AliyunSecurityGroup.exe cn-hongkong ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " javam-* ../json/javam.json javam-"    .. initData.xxxx .."-byTools"); print("正在生成 sg-javam.bat");
TWaryLua.SaveToFile("./exe/sg-sql.bat",     "AliyunSecurityGroup.exe cn-hongkong ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " sql-* ../json/sql.json sql-"          .. initData.xxxx .."-byTools"); print("正在生成 sg-sql.bat");
TWaryLua.SaveToFile("./exe/sg-web.bat",     "AliyunSecurityGroup.exe cn-hongkong ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " web-* ../json/web.json web-"          .. initData.xxxx .."-byTools"); print("正在生成 sg-web.bat");
TWaryLua.SaveToFile("./exe/sg-proxy.bat",   "AliyunSecurityGroup.exe cn-shenzhen ".. initData.ecs_accesskey_id .. " " .. initData.ecs_accesskey_secret .. " proxy-* ../json/proxy.json proxy-"    .. initData.xxxx .."-byTools"); print("正在生成 sg-proxy.bat");


